<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>layui</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css"  media="all">
  <link rel="stylesheet" href="__PUBLIC__/font-awesome/css/font-awesome.min.css" media="all" />
  <link rel="stylesheet" href="__CSS__/admin.css"  media="all">
  <style type="text/css">

    /* tooltip */
    #tooltip{
      position:absolute;
      border:1px solid #ccc;
      background:#333;
      padding:2px;
      display:none;
      color:#fff;
    }
    tr>td{
      text-align: center;
    }
  </style>
</head>
<body style="padding:10px;">
<div class="tplay-body-div">
  <div class="layui-tab">
    <ul class="layui-tab-title">
      <li class="layui-this">订单记录</li>
    </ul>
  </div>
  <form class="layui-form serch" action="{:url('admin/Record/shopping')}" method="get">
    <div class="layui-form-item" style="float: left;">
      <div class="layui-input-inline">
        <input type="text" name="uid" lay-verify="title" autocomplete="off" placeholder="请输入游戏玩家ID" class="layui-input layui-btn-sm">
      </div>
      <div class="layui-input-inline">
        <div class="layui-inline">
          <div class="layui-input-inline">
            <input type="text" class="layui-input" id="create_time" placeholder="创建时间" name="start_time">
          </div>
        </div>
      </div>
      <button class="layui-btn layui-btn-danger layui-btn-sm" lay-submit="" lay-filter="serch">检索</button>
      <button type="reset" class="layui-btn layui-btn-sm">清空</button>
    </div>
  </form>
  <table class="layui-table" lay-size="sm">
    <colgroup>
      <col width="50">
      <col width="50">
      <col width="50">
      <col width="50">
      <col width="50">
      <col width="50">
      <col width="50">
      <col width="50">
      <col width="50">
      <col width="50">
      <col width="50">
      <col width="50">
    </colgroup>
    <thead>
    <tr>
      <th style="text-align: center">游戏玩家ID</th>
      <th style="text-align: center">订单号</th>
      <th style="text-align: center">购买类型</th>
      <th style="text-align: center">购买数量</th>
      <th style="text-align: center">购买价格</th>
      <th style="text-align: center">是否人民币购买</th>
      <th style="text-align: center">物品名</th>
      <th style="text-align: center">支付状态</th>
      <th style="text-align: center">是否赠送</th>
      <th style="text-align: center">赠送数量</th>
      <th style="text-align: center">下单时间</th>
      <th style="text-align: center">完成时间</th>

    </tr>
    </thead>
    <tbody>
    {volist name="result" id="vo"}
    <tr>
      <td>{$vo.uid}</td>
      <td>{$vo.order_sn}</td>
      <td>{if condition="$vo.type eq 1"}购买旗力币{elseif condition="$vo.type eq 2"}购买房卡{elseif condition="$vo.type eq 3"}购买卡包{elseif condition="$vo.type eq 4"}购买道具{else/}购买房卡{/if}</td>
      <td>{$vo.nums}</td>
      <td>{if condition="$vo.is_rmb eq 1"}{$vo.price/100}{else/}{$vo.price}{/if}</td>
      <td>{if condition="$vo.is_rmb eq 1"}是{else/}否{/if}</td>
      <td>{$vo.name}</td>
      <td>{if condition="$vo.is_pay eq 1"}已支付{else/}未支付{/if}</td>
      <td>{if condition="$vo.is_send eq 1"}是{else/}否{/if}</td>
      <td>{$vo.send_nums}</td>
      <td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>
      <td>{if condition="$vo.pay_time eq '0'"}----{else/}{$vo.pay_time|date="Y-m-d H:i:s",###}{/if}</td>
    </tr>
    {/volist}
    </tbody>
  </table>
  <div style="padding:0 20px;">{$result->render()}</div>

  {include file="public/foot"}

</div>
</body>
</html>
